package edu.hz.pro1_50;

import java.math.BigInteger;
import java.util.Scanner;

public class Main1002 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for (int a = 1; a <= n; a++) {
            String x = scanner.next();
            String y = scanner.next();
            BigInteger xInt = new BigInteger(x);
            BigInteger yInt = new BigInteger(y);
            System.out.println("Case " + a + ":");
            System.out.println(x + " + " + y + " = " + (xInt.add(yInt)));
            if (a != n) {
                System.out.println();
            }
        }
    }
}
